package deployr.core;

import java.util.*;

public class Artifacts implements Iterable<Artifact> {

	private List<Artifact> artifacts = new LinkedList<Artifact>();

	public void addArtifact(String groupId, String artifacId, String version) {
		artifacts.add(new Artifact(groupId, artifacId, version));
	}

	public Iterator<Artifact> iterator() {
		return artifacts.iterator();
	}

	@Override
	public String toString() {
		return artifacts.toString();
	}

}
